package com.kd.captcha.storage;

import com.kd.captcha.Captcha;

import java.util.concurrent.TimeUnit;

public interface ICaptchaStorage {

    void set(Captcha captcha);

    void set(Captcha captcha, long timeout, TimeUnit unit);

    Captcha get(String name, String biz);

    boolean remove(Captcha captcha);
}
